$search-list-color: #37383a;
$search-list-color-2: #de2728;
$search-list-color-3: #607D8B;
$search-list-error: #FF5722;
$search-list-bg: #fff;
$search-list-border-color: rgb(238, 238, 238);

$search-list-transition-duration: 300ms;
$search-list-transition-timing-function: linear;
.search-list-box{
    width: 100%;
    height: 100%;
    padding: .1rem;
    @include flexLayout(flex,normal,normal);
    flex-flow: column;
    .search-list__header{
        flex: 0 0 auto;
        height: .5rem;
        overflow: hidden;
        @include flexLayout(flex,normal,normal);
        .search-list__btn{
            flex: 0 0 auto;
            padding-left: .1rem;
        }
        .search-list__input{
            flex: 1;
        }
        ::v-deep{
            .el-tabs__nav{
                width: 100%;
                @include flexLayout(flex,normal,normal);
            }
            .el-tabs__item{
                flex: 1;
                width: 50%;
                text-align: center;
            }
        }
    }
    .search-list__body{
        flex: 1;
        width: 100%;
        height: calc(100% - .5rem);
        overflow-y: auto;
        overflow-x: hidden;
    }
    .search-list__ul{
        width: 100%;
        min-height: 100%;
    }
    ::v-deep{
        .search-list__li{
            width: 100%;
            padding: 0 0 .14rem;
            overflow: hidden;
        }
        .search-list__li-body{
            width: 100%;
            position: relative;
        }
        .search-list__li-col{
            width: 100%;
            @include flexLayout(flex,normal,center);
            &.edit-row{
                position: absolute;
                top: 0;
                left: 0;
                z-index: 0;
                background: $search-list-bg;
                opacity: 0;
                transform: translate(0,-100%);
                transition-property: opacity,transform;
                transition-duration: $search-list-transition-duration;
                transition-timing-function: $search-list-transition-timing-function;
                &.editing{
                    opacity: 1;
                    transform: translate(0,0);
                }
                .search-list__li-tip{
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    z-index: 2;
                    color: $search-list-error;
                    font-size: .12rem;
                    transform: translate(0,100%);
                    opacity: 0;
                }
                &.error{
                    .search-list__li-tip{
                        color: $search-list-error;
                        opacity: 1;
                    }
                    .el-input__inner{
                        border-color: $search-list-error;
                    }
                }
            }
            .search-list__li-name{
                flex: 1;
                font-size: .14rem;
                color: $search-list-color;
                @include textEllipsis();
            }
            .search-list__li-value{
                flex: 0 0 auto;
                padding: 0 .1rem;
                .el-button{
                    color: $search-list-color-3;
                    &.red{
                        color: $search-list-color-2;
                    }
                }
            }
        }
    }
}
